import request from '@/utils/request'

// ······························· 【代理查询---start】 ····································
// 代理查询主页
export function getProxy (params) {
  return request({
    url: '/agentManage/agentReportList',
    method: 'get',
    params:params
  })
}

// 代理查询列表
export function getAgent (params) {
  return request({
    url: '/user/getUserAgentList',
    method: 'get',
    params:params
  })
}

// 用户代理详情
export function getDetails (params) {
  return request({
    url: '/user/getUserAgentInfo',
    method: 'get',
    params:params
  })
}

// 用户代理详情
export function getAgent123 (params) {
  return request({
    url: '/user/getUserAgentPayInfo',
    method: 'get',
    params:params
  })
}

// 用户设备详情
export function getMobile (params) {
  return request({
    url: '/user/getUserDeviceInfo',
    method: 'get',
    params:params
  })
}
// ······························· 【代理查询---end】 ····································




// ······························· 【代理降级---start】 ····································
// 代理降级-列表
export function getReduce (params) {
  return request({
    url: '/agentManage/agentReduce',
    method: 'get',
    params:params
  })
}

// 代理降级-汇总
export function setReduce (data) {
  return request({
    url: '/agentManage/agentReduceChange',
    method: 'post',
    data:data
  })
}
// ······························· 【代理降级---end】 ····································